<template>
  <!-- <router-view /> -->

  <router-view v-slot="{ Component }">
  <keep-alive>
    <component :is="Component" :key="$route.path" v-if="$route.meta.keepAlive"/>
  </keep-alive>
  <component :is="Component" :key="$route.path" v-if="!$route.meta.keepAlive"/>
</router-view>   
  
</template>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  // text-align: center;
  color: #2c3e50;
  background-color: #F8F8FA;
}
</style>
